<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<script src="/plug-in/jquery-easyui-1.5.1/plugins/jquery.choosebox.js"></script>
<title>信息配置页面</title>
<script>
	$(function(){
		var data = fn.getDialogData();
		var customerId = data.customerId;
		if(customerId){
			$.ajax({
				type:"get",
				url:"/console/com.fs.sms.pojo.Customer/list",
				data:{"id":customerId,"id_searchType":"eq"},
				success:function(data){
					fn.loadData(data.rows[0]);
					fn.resetForm();
				}
			});
		}
		$("#userId").val(data.id);	
		$("#customerId").val(customerId);	
	});
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/user/rewrite/config">
		 <!--类名属性及默认主键id-->
		 <input type="hidden" id = "userId" name="userId" value="" />
		 <input type="hidden" name="createrId" value="${SESSION_USER.user.id}"/>
		 <input type="hidden" name="customerId" value=""/>
		 <input type="hidden" name="companyStatus" value="0"/>
		 <input type="hidden" id ="companyNumber" name="companyNumber" class="easyui-autoCode" data-options="prefix:'DW'"/>
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="companyName" style="width:500px;" data-options="label:'企业名称:',required:true,validType:'maxLen[25]'" />
		 </div>
		  <div style="margin-bottom:20px">
		 	<input class="easyui-textbox easyui-validatebox" name="companyPassword" style="width:240px;" data-options="label:'企业密钥:',required:true,validType:'length[3,15]'" />
		 	<input class="easyui-textbox easyui-validatebox" name="impowerIp" style="width:240px;" data-options="label:'授权IP:',validType:'ip'" />
		 </div>
		 <%--<div style="margin-bottom:20px">
		  <select class="easyui-combobox easyui-validatebox" name="companyStatus" style="width:240px;" data-options="label:'企业状态:',required:true" >
			  	<option value="0" selected="selected">正常</option>
			  	<option value="1">禁用</option>
		  </select>
		  <select class="easyui-combobox easyui-validatebox" name="isCheck" style="width:240px;" data-options="label:'短信审核:',required:true" >
			  	<option value="1" selected="selected">关闭</option>
			  	<option value="0">开启</option>
		  </select>
		 </div>
		 --%><div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="smsSignature" style="width:240px;" data-options="label:'短信签名:',required:true,validType:'length[1,10]'" />
		  <input class="easyui-textbox easyui-validatebox" name="smsExtCode" style="width:240px;" data-options="label:'短信扩展码:',required:true,validType:['maxLen[4]','remote[\'/console/customer/remote\',\'smsExtCode\']']" />
		 </div>
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="reployAddress" style="width:240px;" data-options="label:'回复地址:',validType:'url'" />
		  <input class="easyui-textbox easyui-validatebox" name="reportAddress" style="width:240px;" data-options="label:'报告地址:',validType:'url'" />
		 </div>
		 <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:500px;height:50px;" data-options="label:'备注:',required:false,validType:'length[0,500]'" />
		 </div>
		</form>
	</div>
</body>
</html>